//
//  TopCollectionLayout.h
//  网易头部滚动条
//
//  Created by dllo on 16/8/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>

@class TopCollectionLayout;

@protocol TopCollectionLayoutDelegate <NSObject>

- (CGSize)collectionView:(UICollectionView *)collectionView topLayout:(TopCollectionLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface TopCollectionLayout : UICollectionViewLayout

@property (nonatomic, assign) CGSize itemSize;

@property (nonatomic, assign) CGFloat minimumIteritemSpacing;

@property (nonatomic, assign) UIEdgeInsets sectionInset;

@property (nonatomic, weak) id<TopCollectionLayoutDelegate>delegate;

@end
